﻿
@{
    Layout = null;
}
<!DOCTYPE html>
@model ElingOA6_Admin_DSJCJ.Model.FTP_New
<html>
<head>
    <title>重命名</title>
    @if (false)
    {
        <script src="../../../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>  
        <script src="../../../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>    
    }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/jquery-ui.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/jquery-ui.min.js", true)" type="text/javascript"></script>

    <link href="@Url.Content("~/Scripts/dynatree/skin/ui.dynatree.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/dynatree/jquery.dynatree.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/json2.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>

    @Html.DevExpress().GetStyleSheets(

    new StyleSheet { ExtensionType = ExtensionType.ListBox, Theme = DevExpressHelper.Theme }
    )
    @Html.DevExpress().GetScripts(
        new Script { ExtensionType = ExtensionType.ListBox }
    )
    <style type="text/css">
        #tree ul.dynatree-container
        {
            overflow: auto;
            position: relative;
            height: 90%;
        }
        #treeDiv
        {
            overflow: auto;
            position: relative;
            height: 465px;
        }
        body
        {
            margin: 0px;
            font-size: 12px;
        }
    </style>

    <script type="text/javascript">

    </script>

    <script type="text/javascript">
        $(function () {

            $("#btnOK").bind("click", function () {
                var FId = $('#hdFID').val();
                var FName = $('#txtName').val();

                $.ajax({
                    type: "POST",
                    url: rootPath + "/Admin/EnterpriseFTPFront/Rename",
                    data: { FId: FId, FName: FName },
                    success: function (result) {
                        window.returnValue = result;
                        window.close();
                    }
                });

            });
            $("#btnCancel").bind("click", function () {
                window.close();
            });
        });
        

    </script>

</head>
<body>
    <div style="padding: 0px; width: 100%; font-size: 12px; text-align: center;">
        <table class="tableFormNew">
            <tr>
                <th>文件名:</th>
                <td class="tdClass"><input id="txtName" type="text" value="@Model.strName" style=" width:260px;"/></td>
            </tr>
        </table>
        <table align="center">
            <tr>
                <td>
                    @Html.DevExpress().Button(settings =>
               {
                   settings.Name = "btnOK";
                   settings.Text = "确定";

                   settings.Images.Image.Url = Url.Content("~/Content/ControlImages/ok.png");

               }).GetHtml()
                </td>
                <td>
                    @Html.DevExpress().Button(settings =>
               {
                   settings.Name = "btnCancel";
                   settings.Text = "取消";

                   settings.Images.Image.Url = Url.Content("~/Content/ControlImages/no.png");
                   settings.CausesValidation = false;

               }).GetHtml()
                </td>
            </tr>
        </table>
    </div>
    @Html.Hidden("hdFID", Model.FID)
</body>
</html>
